import {reactive} from "vue";

const menu = reactive({
	menu: [],
	clear: () => {
		menu.menu = null;
	},
	addMenu: (item) => {
		menu.menu.push(item);
	},
	setMenu: (m) =>{
		menu.menu = m;
	}
});

export default function useMenu(){
	return menu;
}